<template lang="html">
  <div class="header">
      <div class="header-right" @click="goBack">
          <span class="iconfont back-icon">&#xe608;</span>
      </div>
    <div class="">
      城市选择
    </div>
  </div>
</template>

<script>
export default {
  name: 'cityHeader',
  methods :{
    goBack () {
      this.$router.goBack(-1)
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl';
    .header
      height: $headerHeight
      overflow: hidden
      line-height: $headerHeight
      text-align: center
      color: #fff
      font-size: .36rem
      background: $bgColor
      .header-right
        margin-left: .2rem
        float: left
        display: inline-block
        .iconfont
          font-size: .45rem
          color: #fff
</style>
